/**
 * @author zhengjiachao
 * @since 2017-4-6
 */
ADF.domControl.Input = function(parent) {
    ADF.domControl.Input.superclass.constructor.call(this, parent);
};

COM.util.defineClass(ADF.domControl.Input, ADF.domControl.BaseControl, {
    getLabel: function(){
        return "Input";
    },
    setText: function(text) {
        this.domElement.value = text;
    },
    setInputtype:function(type){
        this.domElement.setAttribute('type',type);
    },
    _getDomElement: function(model) {
        var dom = COM.util.HTMLUtil.createELement('<input type="text" style="overflow:hidden;" value="'+model.getText()+'"/>');
        return dom[0];
    }

});